package com.zmj.sy.mom.srv.aps.utils.order;

import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseListResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BasePageResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseSelectResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.order.*;
import com.zmj.sy.mom.srv.aps.utils.SyExceptionUtils;

public interface ExternalOrder {

    String ERP_CODE = "erp";
    String MBD_CODE = "mbd";
    String WL_CODE = "wl";


    default BaseSelectResVo externalSelect(OrderExternalSelectReqVo reqVo) {
        throw SyExceptionUtils.e("不支持下拉选择框");
    }

    default void externalImport(OrderExternalImportReqVo reqVo) {
        throw SyExceptionUtils.e("不支持订单导入");
    }


    default BasePageResVo<OrderExternalListResVo> externalList(OrderExternalListReqVo reqVo) {
        throw SyExceptionUtils.e("不支持外部列表");
    }

    default BaseListResVo<OrderExternalBomResVo> externalBom(OrderExternalBomReqVo reqVo) {
        throw SyExceptionUtils.e("不支持查看BOM");
    }

    default BaseListResVo<OrderExternalDetailResVo> externalDetail(OrderExternalDetailReqVo reqVo){
        throw SyExceptionUtils.e("不支持查看已同步的节点列表");
    }

    default void externalSync(OrderExternalSyncReqVo reqVo) {
        throw SyExceptionUtils.e("不支持同步");
    }

    String getMyCode();

    default void externalBomDel(OrderExternalBomDelReqVo reqVo){
        throw SyExceptionUtils.e("不支持删除");
    }
}
